import { Media } from "@/api/service/lcd-device/types";

export const showForm = ref(false);
const formObj: Media = {
  mediaId: "",
  mac: "",
  location: "",
  resolutionId: "",
  deptId: "",
  status: "",
  uri: null,
  refreshTimes: null,
  lastUpdateTime: null,
  lastOnlineTime: null,
  templateId: null,
  fwVersion: "",
  storeName: null,
  goodsName: null,
  share: null,
  barcode: null,
  templateName: null,
  resolutionDesc: null,
  resolutionWidth: 0,
  resolutionHeight: 0,
  nlast: "",
  goodsList: [],
  label: "",
  display: "1",
  conn: "0",
  offsetX: 0,
  offsetY: 0,
  brightness: 0,
  volume: 0,
  screenFlip: 0
};
export const form = ref<Media>({
  ...formObj
});

export const resetForm = () => {
  form.value = {
    ...formObj
  };
};
export const dispatchModal = ref(false);
export const upgradeModal = ref(false);
export const showGroupModal = ref(false);
